﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SocietalForcesTypePanel.aspx.cs" Inherits="FantastPlatform.Community.UI.SocietalForces.SocietalForcesTypePanel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/flexigrid.css" rel="stylesheet" type="text/css" />
    <link href="../css/flexigrid.pack.css" rel="stylesheet" type="text/css" />
    <script src="../JS/jquery/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
    <script src="../JS/jquery/common.js" type="text/javascript"></script>
    <script src="../JS/jquery/jquery-1.6.1.js" type="text/javascript"></script>
    <script src="../JS/jquery/plugins_source/jquery.flexigrid.js" type="text/javascript"></script>
    <script src="../JS/jquery/plugins_source/flexigrid.pack.js" type="text/javascript"></script>
</head>
<body>
    <div id="flexgrid">
    
    </div>
    <script type="text/javascript">
        function test() {
            alert("ok");
        };
        $("#flexgrid").flexigrid({
            url: 'SocietalForcesTypePanel.aspx?Action=Load',
            dataType: 'json',
            colModel: [
		{ display: '名称', name: 'Name', width: 50, sortable: true, align: 'center' },
		{ display: '编号', name: 'Code', width: 50, sortable: true, align: 'center' },
		{ display: '描述', name: 'Description', width: 200, sortable: true, align: 'center' }
		],
            buttons: [
		{ name: '新增', bclass: 'add', onpress: test },
        { name: '编辑', bclass: 'add', onpress: test },
        { name: '查询', bclass: 'add', onpress: test },
		{ name: '删除', bclass: 'delete', onpress: test },
		{ separator: true }
		],
            searchitems: [
		{ display: '名称', name: 'Name' },
		{ display: '编号', name: 'Code', isdefault: true }
		],
            sortname: "Name",
            sortorder: "asc",
            usepager: true,
            title: '社会力量类型',
            useRp: true,
            rp: 21,
            showTableToggleBtn: true,
            width: 700,
            height: 200
        });   
    </script>
</body>
</html>
